package com.bjpowernode.servlets;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class SomeServlet extends HttpServlet {

	protected void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		StringBuffer requestURL = request.getRequestURL();
		System.out.println("requestURL=" + requestURL);
		String requestURI = request.getRequestURI();
		System.out.println("requestURI=" + requestURI);
		System.out.println("contextPath=" + request.getContextPath());
		System.out.println("remoteAddr=" + request.getRemoteAddr());
		System.out.println("servletPath=" + request.getServletPath());
		System.out.println("pathInfo=" + request.getPathInfo());
	}

}
